import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue'),
    },
    {
      path: '/bubble-sort',
      name: 'bubbleSort',
      component: () => import('../views/BubbleSortView.vue'),
    },
    {
      path: '/quick-sort',
      name: 'quickSort',
      component: () => import('../views/QuickSortView.vue'),
    },
    {
      path: '/insertion-sort',
      name: 'insertionSort',
      component: () => import('../views/InsertionSortView.vue'),
    },
    {
      path: '/merge-sort',
      name: 'mergeSort',
      component: () => import('../views/MergeSortView.vue'),
    },
    {
      path: '/heap-sort',
      name: 'heap-sort',
      component: () => import('../views/HeapSortView.vue'),
    },
  ],
})

export default router
